package com.cskaoyan.order.constant;

public class OrderConstants {

    public static int ORDER_STATUS_INIT=0; //初始化状态
    public static int ORDER_STATUS_PAYED=1; //已支付
    public static int ORDER_STATUS_TRANSACTION_SUCCESS=4; //交易成功
    public static int ORDER_STATUS_TRANSACTION_CLOSE=5; //交易关闭
    public static int ORDER_STATUS_TRANSACTION_FAILED=6; //交易失败
    public static int ORDER_STATUS_TRANSACTION_CANCEL=7; //订单取消
    public static int ORDER_STATUS_TRANSACTION_DELETE=8; //订单取消
    public static int ORDER_ID_INCR =1; //订单取消

    public static String ORDER_ID = "order_id";
    public static String ORDER_ITEM_ID = "order_item_id";
    public static String ORDER_STATUS = "status";

    public static final String ORDER_STOCK_LIMIT = "您购买的商品数量超过限购数目";
    public static final String ORDER_STOCK_LACK = "您购买的商品数量超过库存";
    public static final String ORDER_INIT_STOCK = "商品库存尚未初始化";
    public static final String ORDER_INIT_FAIL = "000001";
    public static final String ORDER_INIT_INSERT = "订单生成失败";
    public static final String ORDER_DELETE_FAIL = "订单删除失败";
    public static final String ORDER_ITEM_INSERT = "订单商品表生成失败";
    public static final String ORDER_SHIP_INSERT = "收货地址表生成失败";
    public static final String ORDER_CREATE_SUCCESS = "success";
    public static final String ORDER_DELETE_SUCCESS = "200";

    public static String ORDER_DEFAULT_SORT_RULE = "create_time desc";
    public static String ORDER_USER_ID = "userId";
    public static String ID_ORDER = "orderId";

}

